package com.football.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 李越
 * @since 2023-02-24
 */
@Data
@ApiModel(value = "球员表", description = "")
@TableName("player")
public class Player implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("球员id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("球员姓名")
    private String playerName;

    @ApiModelProperty("球员年龄")
    private Integer playerAge;

    @ApiModelProperty("球员图片")
    private String playerImg;

    @ApiModelProperty("球员身高")
    private Double playerHeight;

    @ApiModelProperty("球员体重")
    private Double playerWeight;

    @ApiModelProperty("场上位置")
    private String playerPosition;

    @ApiModelProperty("球衣号码")
    private Integer playerNumber;

    @ApiModelProperty("球员国籍")
    private String playerNation;

    @ApiModelProperty("球员身价")
    private Long playerValue;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("所属球队id")
    private Integer teamId;

    //该球员所属球队的信息
    @TableField(exist = false)//表示这个字段不存在于这个数据库
    private Team team;

    //球员能力
    @TableField(exist = false)//表示这个字段不存在于这个数据库
    private PlayerAbility playerAbility;

    //球员总数据
    @TableField(exist = false)//表示这个字段不存在于这个数据库
    private PlayerData playerData;


}
